<template>
  <div>
    <h2>这是一个错误页</h2>
    <h3 v-if="error.statusCode==404">404</h3>
    <h3 v-else>500</h3>
  </div>
</template>

<script>
export default {
  name: "error",
  props: [
    'error'
  ]
}
</script>

<style scoped>

</style>
